package com.maiikun.thread_pool.reject;

import com.maiikun.thread_pool.MyThreadPool;

/**
 * 抛出异常，阻止系统继续运行
 */
public class AbortPolicy implements RejectHandle {
    @Override
    public void reject(Runnable command, MyThreadPool threadPool) {
        throw new RuntimeException("阻塞队列满了");
    }
}
